package view.Administrateur;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class RightPanel extends JPanel {

	public RightPanel() {

		// Agencement des conteneurs
		GridBagConstraints constraint = new GridBagConstraints();
		this.setLayout(new GridBagLayout());

		// Ajout de la transparence
		this.setOpaque(false);


		// CONTRAINTE DU PANNEAU DE CONFIRMATION DES INSCRIPTIONS

		constraint.gridx = 1;
		constraint.gridy = 0;

		constraint.weightx = 1.0;
		constraint.weighty = 0.8;

		constraint.gridwidth = GridBagConstraints.REMAINDER;
		constraint.gridheight = 8;

		constraint.fill = GridBagConstraints.BOTH;

		this.add(new ReceivePanel(), constraint);


		// CONTRAINTE DU PANNEAU DE DEMANDE D'INSCRIPTION

		constraint.gridy = 8;

		constraint.weighty = GridBagConstraints.NONE;

		constraint.gridheight = GridBagConstraints.REMAINDER;

		this.add(new SendPanel(), constraint);

		// FIN DES CONTRAINTES

	}

}
